package cn.senwill;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * Error creating bean with name 'statViewServletRegistrationBean' defined in class path resource
 * 这是由于druid需要servlet容器，而spring-cloud-gateway不能使用servlet，为此在配置文件中将stat-view-servlet和web-stat-filter关闭
 */
@MapperScan("cn.senwill.mapper")
@SpringBootApplication
@EnableFeignClients
@EnableDiscoveryClient
public class ApiGatewayApplication {
    public static void main(String[] args) {
        SpringApplication.run(ApiGatewayApplication.class, args);
    }
}